import { Dimensions, Platform, PixelRatio } from 'react-native';

export const __IOS__ = true;
export const __ANDROID__ = false;

import True from '../stores/True';

export const BASE_URL= True.linkCheckData;

export const gScreen = {
    width: Dimensions.get('window').width,
    height: Dimensions.get('window').height,
    navBarHeight: __IOS__ ? 64 : 50,
    navBarPaddingTop: __IOS__ ? 20 : 0,
    onePix: 1 / PixelRatio.get()
}

export const gColors = {
    brandPrimary : '#42bd9f',
    brandPrimaryTap : '#228B22'
}

export const gSortTypeUnitMapper = {
    'calory': '千卡',
    'protein': '克',
    'fat': '克',
    'carbohydrate': '克',
    'fiber_dietary': '克',
    'vitamin_a': 'IU',
    'vitamin_c': '毫克',
    'vitamin_e': '毫克',
    'carotene': '毫克',
    'thiamine': '毫克',
    'lactoflavin': '毫克',
    'niacin': '毫克',
    'cholesterol': '毫克',
    'magnesium': '毫克',
    'calcium': '毫克',
    'iron': '毫克',
    'zinc': '毫克',
    'copper': '毫克',
    'manganese': '毫克',
    'kalium': '毫克',
    'phosphor': '毫克',
    'natrium': '毫克',
    'selenium': '毫克',
    'iodine': '毫克'
}